home *** CD-ROM | disk | FTP | other *** search
- Path: news.netvision.net.il!usenet
- From: simchoni@netvision.net.il (Ami Simchoni)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: Hungarian notation
- Date: 9 Jan 1996 18:19:31 GMT
- Organization: Simchoni Automation Systems Ltd
- Message-ID: <4cubjk$gup@news.netvision.net.il>
- References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd3ga$80a@beatty.slip.netcom.com> <Crawford.819654200@voyager>
- NNTP-Posting-Host: ts4cp13.netvision.net.il
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.3
-
- In article <Crawford.819654200@voyager>, Crawford@voyager.cris.com
- says...
- >
- >beatty@netcom.com (Derek Lee Beatty) writes:
- >>Does anyone buy the premise of this
- >>argument, that making names more meaningful "definitely reduces
- >>readability?!"
- >
- > The assumption behind your statement is that Hungarian
- >notation makes the variable's name "more meaningful". I don't agree
- >with that. What happens if the code is changed to use a different
- >type? For example, changing null-terminated strings to a C++ string
-
- The type in a proper hungarian name should refer to an abstract data type
- (ADT) and not to a language-specific type.
- A part of a naming convention for a specific project is specifying the
- ADTs and their names. That's how the convention increases readability -
- you always know to what type of real-world or software entity the
- variable contains.
- The hungarian convention also makes it easy to remember variable names
- because much of the name is standardized.
- If the program uses ADTs, the name shouldn't change whenever the platform
- or implementation changes.
- This approach INCREASES portability because it enforces making an ADT for
- every variable and not using language types. It can also be viewed as a
- big headache by some (me included).
- What some people have done is to use language-specific types with the
- hugarian convention. This practice certainly does not increase
- readability.
-
-